package com.dba.example.gwt.client.commands;

import javax.inject.Named;

import com.dba.example.gwt.client.beans.Company;
import com.google.gwt.user.client.Command;
import com.google.inject.assistedinject.Assisted;
import com.google.web.bindery.autobean.shared.AutoBean;

public interface ExampleCommandFactory {

	@Named("CompanyPage")
	Command companyPage(@Assisted("offset") int offset,
			@Assisted("size") int size,
			@Assisted("sortColumn") String sortColumn,
			@Assisted("sortDirection") String sortDirection,
			@Assisted("search") String search, CompanyPageCallback callback);

	@Named("CompanyGet")
	Command companyGet(int id, CompanyGetCallback callback);

	@Named("CompanySave")
	Command companySave(AutoBean<Company> company, CompanySaveCallback callback);

}
